import request from '@/request';

export const getCommunityList = (data) => {
	return request('/api/community/list', data, 'post');
}


export const getCommunityInfo = (data) => {
	return request('/api/community/edit', data);
}

export const communityPublish = (data) => {
	return request('/api/community/publish', data, 'post');
}

export const getCommunityDetail = (data) => {
	return request('/api/community/detail', data);
}

// 评论列表
export const getCommentsList = (data) => {
	return request('/api/comments/list', data);
}

// 点赞
export const giveLike = (data) => {
	return request('/api/comments/give_like', data, 'post');
}
// 一条评论详情
export const getCommentsOne = (data) => {
	return request('/api/comments/one', data, 'post');
}
